# -*- coding: UTF-8 -*-
import xlrd
import json
import sys
reload(sys)
sys.setdefaultencoding('utf8')

def is_english_char(ch):
	if ord(ch) not in (97,122) and ord(ch) not in (65,90):
		return False
	return True

bok = xlrd.open_workbook(r'/Users/myname/Downloads/chars.xlsx');
sht = bok.sheets()[0]
row1 = sht.row_values(0)
index = 1
list = []
while index < 15614 :
	cell_d4 = sht.cell(index,0).value;
	uu = cell_d4
	index += 1
	list.append({'KeyWord':uu})
	# print cell_d4

msg = {"words":list}
mm = json.dumps(msg)
# print mm
f = open('/Users/myname/Documents/22.json', 'w') 
# if is_english_char(mm[1]):
	# cc = mm
# else:
cc = mm.decode('unicode_escape')
f.write(cc)
print 'finish...'